package com.spring.mvc.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spring.mvc.bean.T0010maesDist;
import com.spring.mvc.dao.T0010maesDistMapper;

@Service
public class DistritoServiceImpl implements DistritoService{
	@Autowired
	private T0010maesDistMapper t0010maesDistMapper;
	
	@Override
	public List<T0010maesDist> selectAllDistrito(String codeDepa,
			String codeProv) throws Exception {
		Map<String, Object> paran=new HashMap<String, Object>();
		if(codeDepa!=null){
			paran.put("COD_DEPA", codeDepa);
		}
		if(codeDepa!=null){
			paran.put("COD_PROV", codeProv);
		}
		List<T0010maesDist> listaDistrito=t0010maesDistMapper.selectAllDistrito(paran);

		return listaDistrito;
	}

	
	
	

}
